package com.example.mykotlin.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@Schema(name = "InsertRolePermissionsDTO", title = "角色新增权限")
data class InsertRolePermissionsDTO(
    @Schema(title = "角色的唯一标识符")
    @field:Size(max = 62, message = "长度不能超过64")
    @field:NotBlank(message = "不能为空")
    var roleId: String? = null,

    @Schema(title = "需要增加的权限主键列表")
    var addPermissionList: MutableSet<String>? = null,

    @Schema(title = "需要移除的权限主键列表")
    var removePermissionList: MutableSet<String>? = null,
)